export const containers = [
	{
		type: 'grid',
		label: '容器',
		category: 'grid',
		icon: 'grid',
		options: {
			i: '',
			name: '容器',
			hidden: false,
			x: 0,
			y: -1,
			w: 6,
			h: 4,
			children: []
		}
	}
]

export const basicFields = [
	{
		type: 'charts',
		icon: 'text-field',
		formItemFlag: false,
		category: 'charts',
		options: {
			i: '',
			name: 'echarts图表',
			hidden: false
		}
	}
]

export const advancedFields = [
	{
		type: 'picture-upload',
		icon: 'picture-upload-field',
		formItemFlag: true,
		options: {
			name: '',
			label: '',
			labelAlign: '',
			labelWidth: null,
			labelHidden: false,
			columnWidth: '200px',
			disabled: false,
			hidden: false,
			required: false,
			requiredHint: '',
			customRule: '',
			customRuleHint: '',
			// -------------------
			uploadURL: '',
			uploadTip: '',
			withCredentials: false,
			multipleSelect: false,
			showFileList: true,
			limit: 3,
			fileMaxSize: 5, // MB
			fileTypes: ['jpg', 'jpeg', 'png'],
			// headers: [],
			// -------------------
			customClass: '', // 自定义css类名
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			// -------------------
			onCreated: '',
			onMounted: '',
			onBeforeUpload: '',
			onUploadSuccess: '',
			onUploadError: '',
			onFileRemove: '',
			onValidate: ''
			// onFileChange: '',
		}
	},

	{
		type: 'file-upload',
		icon: 'file-upload-field',
		formItemFlag: true,
		options: {
			name: '',
			label: '',
			labelAlign: '',
			labelWidth: null,
			labelHidden: false,
			columnWidth: '200px',
			disabled: false,
			hidden: false,
			required: false,
			requiredHint: '',
			customRule: '',
			customRuleHint: '',
			// -------------------
			uploadURL: '',
			uploadTip: '',
			withCredentials: false,
			multipleSelect: false,
			showFileList: true,
			limit: 3,
			fileMaxSize: 5, // MB
			fileTypes: ['doc', 'docx', 'xls', 'xlsx'],
			// headers: [],
			// -------------------
			customClass: '', // 自定义css类名
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			// -------------------
			onCreated: '',
			onMounted: '',
			onBeforeUpload: '',
			onUploadSuccess: '',
			onUploadError: '',
			onFileRemove: '',
			onValidate: ''
			// onFileChange: '',
		}
	},

	{
		type: 'rich-editor',
		icon: 'rich-editor-field',
		formItemFlag: true,
		options: {
			name: '',
			label: '',
			labelAlign: '',
			placeholder: '',
			labelWidth: null,
			labelHidden: false,
			columnWidth: '200px',
			contentHeight: '200px',
			disabled: false,
			hidden: false,
			required: false,
			requiredHint: '',
			customRule: '',
			customRuleHint: '',
			// -------------------
			customClass: '', // 自定义css类名
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			minLength: null,
			maxLength: null,
			showWordLimit: false,
			// -------------------
			onCreated: '',
			onMounted: '',
			onValidate: ''
		}
	},

	{
		type: 'cascader',
		icon: 'cascader-field',
		formItemFlag: true,
		options: {
			name: '',
			label: '',
			labelAlign: '',
			defaultValue: '',
			placeholder: '',
			size: '',
			labelWidth: null,
			labelHidden: false,
			columnWidth: '200px',
			disabled: false,
			hidden: false,
			clearable: true,
			filterable: false,
			multiple: false,
			checkStrictly: false, // 可选择任意一级选项，默认不开启
			showAllLevels: true, // 显示完整路径
			optionItems: [
				{
					label: 'select 1',
					value: 1,
					children: [{ label: 'child 1', value: 11 }]
				},
				{ label: 'select 2', value: 2 },
				{ label: 'select 3', value: 3 }
			],
			required: false,
			requiredHint: '',
			customRule: '',
			customRuleHint: '',
			// -------------------
			customClass: '', // 自定义css类名
			labelIconClass: null,
			labelIconPosition: 'rear',
			labelTooltip: null,
			// -------------------
			onCreated: '',
			onMounted: '',
			onChange: '',
			onFocus: '',
			onBlur: '',
			onValidate: ''
		}
	}
]

export const customFields = []
